<include file="__PUBLIC__/head.php">
	<title>评论列表</title>
</head>
<body class="bgwhite-1">
	<div class="Menu">
		<a href="{|U:'Article/index'}"><i class="icon-comment mr3 gray"></i>文章管理</a>
		<a href="{|U('index',array('aid'=>$_GET['aid']))}" class="act"><i class="icon-comment-alt mr3 gray"></i>评论管理</a>
		<a href="{|U:'updateCache'}" class="ajax" actUrl="{|U('index')}"><i class="icon-refresh mr3 gray"></i>更新缓存</a>
	</div>
	<div class="p10">
		<form action="{|U('del')}" method="post">
			<input type="hidden" name="aid" value="{$hd.get.aid}">
			<div class="">
				<a href="" onclick="return submits();" class="bgwhite p5 dib btc blc brc gray a" /><i class="icon-trash icon-large mr3"></i>删除选中项</a>
			</div>
			<table class="table">
				<tr class=' white fm f14'>
					<th class="pct5 tc"><input id="checkAll" type="checkbox" /></th>
					<th class="pct5 tc">cid</th>
					<th class="pct5 tc">Aid</th>
					<th class="pct40">评论内容</th>
					<th class="pcd10">评论人</th>
					<th class="pct20">发布时间</th>
					<th class="pct20 tc">操作</th>
				</tr>
				<foreach from="$comment" value="$c">
					<tr level="{$c._level}" cid="{$c.cid}" pid="{$c.pid}" onclick="level(this);">
						<td class='tc'><input type="checkbox" name="cid[]" value="{$c.cid}" /></td>
						<td class='tc'><span class="b gray2">{$c.cid}</span></td>
						<td class='tc'><span class="b gray2">{$c.aid}</span></td>
						<td class=''>{$c.content|mb_substr:0,20,'utf-8'}</td>
						<td class='tc fv'>{$c.nickname}</td>
						<td class='tc fv'>{$c.addtime|hd_date:'Y-m-d H:i:s'}</td>
						<td class='tc'>
							<a href="{|U:'del?cid='}{$c.cid}/aid/{$c.aid}" class="a bgwhite dels red bdd p5 mr5"><i class="icon-trash icon-border mr3 icon-large"></i>删</a>
						</td>
					</tr>
				</foreach>
			</table>
		</form>
	</div>
<include file="__PUBLIC__/bottom.php">